//
//  LHRadioDownloadTask.h
//  EPA
//
//  Created by 卢浩 on 16/4/27.
//  Copyright © 2016年 卢浩. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^ProgressBlock)(float progress);
typedef void(^CompleteBlock)(NSString *path);

@interface LHRadioDownloadTask : NSObject

- (void)downloadUrl:(NSURL *)url ProgressBlock:(ProgressBlock)proBlock CompleteBlock:(CompleteBlock)comBlock;

//开始
- (void)resume;

//暂停
- (void)suspend;

//修改block
- (void)setProgressBlock:(ProgressBlock)proBlock;

- (void)setCompleteBlock:(CompleteBlock)comBlock;

@end
